using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Utility;
using BUS;
using ENTITIES;

public partial class admin_ChiTietDoanhNghiep : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            LoadData();

        }
    }
    private void LoadData()
    {
        try
        {
            int id = int.Parse(Request.QueryString["ID"]);
            TBDoanhNhiep doanhnghiep = DoanhNghiepBUS.GetByID(id);
            lit_MaDN.Text = doanhnghiep.madn.ToString();
            lit_TenDN.Text = doanhnghiep.tendn;
            lit_TaiKhoan.Text = doanhnghiep.taikhoan;
            Lit_MatKhau.Text = doanhnghiep.matkhau;
            lit_DiaChi.Text = doanhnghiep.diachi;
            lit_Web.Text = doanhnghiep.website;
            lit_SoDT.Text = doanhnghiep.sodt;
            Lit_Email.Text = doanhnghiep.email;




        }
        catch
        {
            Response.Redirect("~/admin/DoanhSachDoanhNghiep.aspx");
        }
    }
}
